package com.vimi8.ebb.auth.api;

import com.vimi8.ebb.auth.configuration.HttpResponseEntity;
import io.swagger.annotations.*;
import org.springframework.web.bind.annotation.*;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.SpringCodegen", date = "2016-09-28T09:30:50.948Z")
@RestController
@Api(value = "logout", description = "the logout API")
public interface LogoutApi {

    @ApiOperation(value = "登出接口", notes = "包含token的cookies是http only 所以需要服务端来删除,达到退出登录的目的.", response = String.class, tags={ "注册登录", })
    @ApiResponses(value = { 
        @ApiResponse(code = 200, message = "成功,退出登录", response = String.class),
        @ApiResponse(code = 200, message = "失败,返回消息", response = String.class) })
    @RequestMapping(value = "/logout/",
        produces = { "application/json" }, 
        method = RequestMethod.POST)
    HttpResponseEntity<String> logoutPost();

}
